import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/attendanceEquipment',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/attendanceEquipment/',
    method: 'delete',
    data: ids
  })
}

export function addLead(data) {
  return request({
    url: 'api/attendanceEquipment/lead',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'api/attendanceEquipment',
    method: 'put',
    data
  })
}

export function ledQueryListForSimple() {
  return request({
    url: 'api/ledInfo/queryListForSimple',
    method: 'get'
  })
}

export function videoQueryListForSimple() {
  return request({
    url: 'api/videoInfo/queryListForSimple',
    method: 'get'
  })
}

export default { add, edit, del }
